@layout("/layout/_form.html", {plugins:["ztree"], js:["/assets/modular/system/role/role_edit_data_scope.js"]}){

<form class="layui-form" id="roleForm" lay-filter="roleForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="roleId" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">角色名称</label>
                        <div class="layui-input-block" style="margin-left: 150px">
                            <input name="roleName" placeholder="请输入角色名称" type="text" class="layui-input layui-disabled" lay-verify="required" disabled="disabled" required autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">数据范围</label>
                        <div class="layui-input-block" style="margin-left: 150px">
                            <input type="radio" name="dataScopeType" lay-filter="dataScopeType" value="10" title="仅本人数据">
                            <input type="radio" name="dataScopeType" lay-filter="dataScopeType" value="20" title="本部门数据">
                            <input type="radio" name="dataScopeType" lay-filter="dataScopeType" value="30" title="本部门及以下数据">
                            <input type="radio" name="dataScopeType" lay-filter="dataScopeType" value="40" title="指定部门数据">
                            <input type="radio" name="dataScopeType" lay-filter="dataScopeType" value="50" title="全部数据">
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12 layui-hide" id="deptTreeContext">
                        <label class="layui-form-label" style="width: 120px">指定部门选择</label>
                        <div class="layui-input-block" style="margin-left: 150px">
                            <ul id="deptTree" class="ztree" style="background: #f2f7f8;"></ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}
